<template>
  <div>
    <footer class="footer">
      <span class="todo-count"
        ><strong>{{ copmuteNum }}</strong
        >剩余</span
      >
      <ul class="filters">
        <li>
          <a class="selected" href="#/" @click="changeStatues('all')">全部</a>
        </li>
        <li>
          <a href="#/active" @click="changeStatues('active')">进行中</a>
        </li>
        <li>
          <a href="#/completed" @click="changeStatues('completed')">已完成</a>
        </li>
      </ul>
      <button class="clear-completed" @click="delAllComplete">
        清除已完成
      </button>
    </footer>
  </div>
</template>

<script>
export default {
  name: 'footer-page',
  props: {
    list: {
      type: Array,
      require: true
    },
    copmuteNum: {
      type: Number,
      require: true
    }
  },
  components: {},
  data () {
    return {}
  },
  methods: {
    changeStatues (statues) {
      this.$emit('changeStatues', statues)
    },
    delAllComplete () {
      this.$emit('delAllComplete')
    }
  },
  mounted () {},
  watch: {},
  computed: {},
  filters: {}
}
</script>

<style scoped lang="less"></style>
